package com.aspose.cells;

class zkc extends zbz {
   zkc() {
      this.c(125);
      this.b(12);
   }

   void a(Column var1, int var2, int var3, int var4, int var5) {
      this.c = new byte[this.d()];
      System.arraycopy(com.aspose.cells.b.a.zc.a(var4), 0, this.c, 0, 2);
      System.arraycopy(com.aspose.cells.b.a.zc.a(var5), 0, this.c, 2, 2);
      double var6 = var1.getWidth();
      if (var6 > 255.0D) {
         var6 = 255.0D;
      }

      boolean var8 = false;
      int var11;
      if (var6 >= 1.0D) {
         var11 = (int)(var6 * 256.0D + (double)var3 + 0.5D) & '\uffff';
      } else {
         var11 = (int)(var6 * (256.0D + (double)var3) + 0.5D) & '\uffff';
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var11), 0, this.c, 4, 2);
      boolean var9 = true;
      int var12;
      if (var1.c() == -1) {
         var12 = 15;
      } else {
         var12 = var1.c();
      }

      System.arraycopy(com.aspose.cells.b.a.zc.a(var12), 0, this.c, 6, 2);
      byte var10 = 2;
      if (var1.isHidden()) {
         var10 = (byte)(var10 | 1);
      }

      if (var1.h()) {
         var10 = (byte)(var10 | 4);
      }

      this.c[8] = var10;
      var10 = var1.b();
      if (var1.g()) {
         var10 = (byte)(var10 | 16);
      }

      this.c[9] = var10;
   }
}
